package org.jeecg.modules.yw.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;

/**
 * @Description: 考勤审批
 * @Author: jeecg-boot
 * @Date:   2025-04-10
 * @Version: V1.0
 */
@Data
@TableName("attendapprove")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="attendapprove对象", description="考勤审批")
public class Attendapprove implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**工人id*/
	@Excel(name = "工人id", width = 15)
    @ApiModelProperty(value = "工人id")
    @Dict(dictTable = "enterprise",dicCode = "id", dicText = "name")
    private String workid;
    /**申请时间*/
    @Excel(name = "申请时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "申请时间")
    private Date createtime;
	/**类型 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假*/
	@Excel(name = "类型 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假", width = 15)
    @ApiModelProperty(value = "类型 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假")
    private String type;
	/**审批 0: 提交 1：通过 2： 驳回*/
	@Excel(name = "审批 0: 提交 1：通过 2： 驳回", width = 15)
    @ApiModelProperty(value = "审批 0: 提交 1：通过 2： 驳回")
    private String approve;
    private String approveman;
	/**审批时间*/
	@Excel(name = "审批时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审批时间")
    private Date approvetime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    @TableField(value = "startTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;
    @TableField(value = "stopTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date stopTime;
    @TableField(exist = false)
    private String workname;
    @TableField(exist = false)
    private String workphone;
    @TableField(exist = false)
    private String token;
    @TableField(value = "approveContent")
    private String approveContent;
}
